package cn.edu.scau.cmi.yangqing.singleton;

public class MutilChairman {
	private MutilChairman instance;
	private String name;
	private static Integer count = 0;
	private MutilChairman(String name) {
		this.name = name;
	}
	public static MutilChairman getInstance(String name) {
		if(count<10) {
			count ++;
			return new MutilChairman(name);
		}
		return null;
	}
	public String getName() {
		return name;
	}
}
